package feizhou.untils.tools;

public class ProductVersionUtil {
    public static boolean oldProductVersionJudge(String productVersion) {
        boolean b = false;
        String[] versionStr = productVersion.split("\\.");
        for (int i = 0; i < versionStr.length; i++) {
            if (i == 0) {
                int v1 = Integer.parseInt(versionStr[i]);
                if (v1 < 4) {
                    b = true;
                    break;
                }
            }
            if (i == 1) {
                int v2 = Integer.parseInt(versionStr[i]);
                if (v2 < 7) {
                    b = true;
                    break;
                }
            }
            
        }
        return b;
    }
    
    public static void main(String[] args) {
        System.out.println(oldProductVersionJudge("4.6.9"));
    }
    
}
